package com.byxy.service;

import com.byxy.dao.BaseDao;
import com.byxy.dao.BasicInfoDaoImpl;
import com.byxy.model.BasicInfo;

import java.util.List;

public class BasicInfoServiceImpl implements BaseService<BasicInfo> {
	BaseDao<BasicInfo> basicDao = new BasicInfoDaoImpl();
	@Override
	public int add(BasicInfo basic) {
		return basicDao.add(basic);
	}

	@Override
	public int deleteById(int id) {
		return basicDao.deleteById(id);
	}

	@Override
	public int update(BasicInfo basic) {
		return basicDao.update(basic);
	}

	@Override
	public List<BasicInfo> findAll() {
		return basicDao.findAll();
	}

	@Override
	public BasicInfo findById(int id) {
		return basicDao.findById(id);
	}

}
